package chap3;
import java.util.Scanner;
public class Task5 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入购买钢管长度:");
        int a = input.nextInt();
        if (a % 3 == 0) {
            System.out.println("需要买" + a / 3 + "根钢管");
        } else {
            System.out.println("需要买" + (a / 3 + 1) + "根钢管");
        }
    }
}
